<template>
  <div>
    <div class="c-textAlign-c c-fs32 c-mv40">
      <div class="iconfont c-fc-green c-fs150">&#xe6eb;</div>
      <p class="c-fs40 c-fc-green c-mt40">扫码成功!</p>
      <p class="c-fs26 c-fc-xblack c-lh60">请返回电脑端继续操作</p>
    </div>
  </div>
</template>
<script>
import { utilJs } from "@/utils/common.js"
export default {
  name: 'BindSuccess',
  data() {
    return {
      qyId: 0 // 路由带过来的
    }
  },
  components: {
  },
  created() {
    utilJs.appShare(this);
  },
  watch: {
    from() {

    },
    activityId() {

    }
  },
  methods: {
    //分享
    wechatShare: function () {
      let title = window.localStorage.getItem("shareTitle");
      let shareImg = window.localStorage.getItem("shareLogo");
      let shareUrl =
        window.location.href.split("#")[0] +
        "#/?refereeId=" +
        localStorage.getItem("userId");
      let shareDesc = window.localStorage.getItem("shareDesc");
      utilJs.wechatConfig(shareUrl, title, shareImg, shareDesc, function () { });
    },
    //手机端分享
    appShare: function () {
      utilJs.appShareTrue("", "", "", "");
    }
  },
  activated() {
    this.qyId = this.$route.query.qyId
    let userId = localStorage.getItem('userId')
    utilJs.getMethod(global.apiurl + 'personalModel/companyBindWx' + '/' + this.qyId + '/' + userId, function (res) {
      console.log(res)
    })
    this.wechatShare();
    this.$store.commit('updateLoadingStatus', {
      isLoading: false
    });
  }
}
</script>
<style scoped>
</style>

